import request from '@/utils/request'


export function doImport(data){
  return request({
    url:"/comprehensive/ranking/doImport",
    data,
    method: "POST"
  });
}


// 查询平均学分绩总排名列表
export function listRanking(query) {
  return request({
    url: '/comprehensive/ranking/list',
    method: 'get',
    params: query
  })
}

// 查询平均学分绩总排名详细
export function getRanking(id) {
  return request({
    url: '/comprehensive/ranking/' + id,
    method: 'get'
  })
}

// 新增平均学分绩总排名
export function addRanking(data) {
  return request({
    url: '/comprehensive/ranking/add',
    method: 'post',
    data: data
  })
}

// 修改平均学分绩总排名
export function updateRanking(data) {
  return request({
    url: '/comprehensive/ranking/update',
    method: 'post',
    data: data
  })
}

// 删除平均学分绩总排名
export function delRanking(id) {
  return request({
    url: '/comprehensive/ranking/' + id,
    method: 'post'
  })
}
